<?php
//判断用户是否登录
session_start();
if(isset($_SESSION['uid'])){
	echo json_encode(['code'=>1,'data'=>$_SESSION,'msg'=>'登录成功']);
}else{
	echo json_encode(['code'=>0,'msg'=>'你还未进行登录']);
}